package com.kuqi.mapper;

import com.kuqi.domain.News;
import com.kuqi.domain.PageVo;
import org.apache.ibatis.annotations.Mapper;

import java.util.List;

/**
 * @author:kuqi
 * @createTime:2021/11/16 8:55
 * @description:
 */

@Mapper
public interface NewsMapper {
    void save(News news);

    void update(News news);

    void deleteNewsById(Integer id);

    int getNewsTotal();

    List<News> getNewsListByPage(PageVo pageVo);

    News getNewsById(Integer id);
}
